function onfocusName(){
	document.getElementById("triangle1").style.display="inline-block";
	document.getElementById("name-tip").style.display="inline-block";
	document.getElementById("name-tip").innerHTML="请输入！";
}
function onblurName(){
	var name=document.getElementById("name").value;
	if(name===""||name===null){
		document.getElementById("triangle1").style.display="inline-block";
		document.getElementById("name-tip").style.display="inline-block";
		document.getElementById("name-tip").innerHTML="请填写姓名。";
		return false;
	}else if(name.search(/^[\u4E00-\u9FA5]+$/)===-1){
		document.getElementById("triangle1").style.display="inline-block";
		document.getElementById("name-tip").style.display="inline-block";
		document.getElementById("name-tip").innerHTML="请写正确的格式。";
		return false;
	}else{
		document.getElementById("triangle1").style.display="none";
		document.getElementById("name-tip").style.display="none";
		return true;
	}
}

function onfocusEmail(){
	document.getElementById("triangle2").style.display="inline-block";
	document.getElementById("email-tip").style.display="inline-block";
	document.getElementById("email-tip").innerHTML="请输入！";
}
function onblurEmail(){
	var email=document.getElementById("email").value;
	if(email===""||email===null){
		document.getElementById("triangle2").style.display="inline-block";
		document.getElementById("email-tip").style.display="inline-block";
		document.getElementById("email-tip").innerHTML="请填写邮箱。";
		return false;
	}else if(email.search(/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/)===-1){
		document.getElementById("triangle2").style.display="inline-block";
		document.getElementById("email-tip").style.display="inline-block";
		document.getElementById("email-tip").innerHTML="请写正确的格式。";
		return false;
	}else{
		document.getElementById("triangle2").style.display="none";
		document.getElementById("email-tip").style.display="none";
		return true;
	}
}

function onfocusEmails(){
	document.getElementById("triangle4").style.display="inline-block";
	document.getElementById("emails-tip").style.display="inline-block";
	document.getElementById("emails-tip").innerHTML="请输入！";
}
function onblurEmails(){
	var emails=document.getElementById("emails").value;
	if(emails===""||emails===null){
		document.getElementById("triangle4").style.display="inline-block";
		document.getElementById("emails-tip").style.display="inline-block";
		document.getElementById("emails-tip").innerHTML="请填写邮箱地址。";
		return false;
	}else if(emails.search(/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/)===-1){
		document.getElementById("triangle4").style.display="inline-block";
		document.getElementById("emails-tip").style.display="inline-block";
		document.getElementById("emails-tip").innerHTML="请写正确的格式。";
		return false;
	}else{
		document.getElementById("triangle4").style.display="none";
		document.getElementById("emails-tip").style.display="none";
		return true;
	}
}

function onfocusSubject(){
	document.getElementById("triangle3").style.display="inline-block";
	document.getElementById("subject-tip").style.display="inline-block";
	document.getElementById("subject-tip").innerHTML="请输入！";
}
function onblurSubject(){
	var subject=document.getElementById("subject").value;
	if(subject===""||subject===null){
		document.getElementById("triangle3").style.display="inline-block";
		document.getElementById("subject-tip").style.display="inline-block";
		document.getElementById("subject-tip").innerHTML="请填写爱好。";
		return false;
	}else if(subject.search(/^[\u4E00-\u9FA5]+$/)===-1){
		document.getElementById("triangle3").style.display="inline-block";
		document.getElementById("subject-tip").style.display="inline-block";
		document.getElementById("subject-tip").innerHTML="请写正确的格式。";
		return false;
	}else{
		document.getElementById("triangle3").style.display="none";
		document.getElementById("subject-tip").style.display="none";
		return true;
	}
}
function formss(){
	if((onblurName()===false)||(onblurEmail()===false)||(onblurSubject()===false)){
		return false;
	}
}
 function forms(){
	if((onblurName()===false)||(onblurEmail()===false)||(onblurEmails()===false)){
		return false;
	}
}